package com.zrrd.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author ZhangYK
 * @version 8.0
 * @title Teacher
 * @description
 * @create 2024/3/30 20:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("teacher")
public class Teacher {
    private Integer id;
    private String tName;
    private String tAge;
    private String tSex;
    @TableField(exist = false)//设置当前属性数据库不存在
    private Integer abc;
    private String username;
    @TableField(select = false)//设置该属性不参与查询
    private String password;
}
